//
//  TZButton+Extension.swift
//  WeiboWithSwift
//
//  Created by 涂真 on 15/12/23.
//  Copyright © 2015年 涂真. All rights reserved.
//

import UIKit
extension UIButton{

    convenience init(imageName:String,fontSize:CGFloat,title:String){
    
        self.init()
        setImage(UIImage(named: imageName), forState: UIControlState.Normal)
        setTitle(title, forState: UIControlState.Normal)
        titleLabel?.font = UIFont.systemFontOfSize(fontSize)
        self.setTitleColor(UIColor.lightGrayColor(), forState: UIControlState.Normal)
    }

}
